// 引入express
const express = require('express')
const app = express()
app.listen(9090, '0.0.0.0', () => console.log('start...'))

// 跨域
app.use(require('cors')());
// post请求
app.use(express.urlencoded({ extended: false }))
app.use(express.json())

app.use('/api', require('./router'))